﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Entity;
using Utils;

public partial class Pages_AccountInformation : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (Session["loginClient"] != null)
        {
            Customer cus = (Customer)Session["loginClient"];
            if (cus.C_Status)
            {
                lblFName.Text = cus.F_Name;
                lblLName.Text = cus.L_Name;
                lblBirth.Text = Format.FormatVietNameDateSQLSyntax(cus.Dob).ToString();
                lblAddress.Text = cus.Address;
                lblPhone.Text = cus.P_No;
                lblEmail.Text = cus.Email;
                if (cus.Gender)
                {
                    lblGender.Text = "Male";
                }
                else
                {
                    lblGender.Text = "Female";
                }
            }
            else
            {
                Response.Redirect("../Pages/AccountLock.aspx");
            }
        }
        else
        {
            Response.Redirect("../Pages/Login.aspx");
        }
    }
    protected void btnChangeAcc_Click(object sender, EventArgs e)
    {
        Response.Redirect("../Pages/AccoutChangeInfo.aspx");
    }
}
